//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.senseframework.support.lucene.core;

import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;

public final class SearchField extends Field {
    public static final FieldType TYPE = new FieldType();

    public SearchField(String name, String value) {
        super(name, value, TYPE);
    }

    public SearchField(String name, int value) {
        super(name, TYPE);
        this.fieldsData = Integer.valueOf(value);
    }

    public SearchField(String name, float value) {
        super(name, TYPE);
        this.fieldsData = Float.valueOf(value);
    }

    public SearchField(String name, long value) {
        super(name, TYPE);
        this.fieldsData = Long.valueOf(value);
    }

    public SearchField(String name, double value) {
        super(name, TYPE);
        this.fieldsData = Double.valueOf(value);
    }

    static {
        TYPE.setIndexed(true);
        TYPE.setStored(true);
        TYPE.setOmitNorms(false);
        TYPE.setTokenized(false);
        TYPE.freeze();
    }
}
